package com.jzy.bxb.manage.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jzy.bxb.manage.core.service.MongoBaseService;
import com.jzy.bxb.model.mongo.dao.OrderDao;
import com.jzy.bxb.model.mongo.entity.Order;

/**
 * 小区
 * 
 * @author JiangZhiYong QQ:359135103
 */
@Service
public class OrderService extends MongoBaseService<Order, Long> {

	@Autowired
	private OrderDao orderDao;

	public OrderDao getOrderDao() {
		return orderDao;
	}

	public void setOrderDao(OrderDao orderDao) {
		this.orderDao = orderDao;
		setBaseDao(orderDao);
	}

	public List<Order> getOrders() {
		return orderDao.createQuery().asList();
	}

}
